﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FWMS.Service
{
    class Chukuguanli_yuanliaoService
    {
        //材料全部查询
        public Bean.Chukuguanli_yuancailiaoBean chukuguanli_ServiceSelect()
        {
            DAO.Chukuguanli_yuancailiaoDao yuancailiaodao = new DAO.Chukuguanli_yuancailiaoDao();
            return yuancailiaodao.chukuguanli_yuancailiaoDaoSelectchukuuse();
        }
        //原材料出库条件查询
        public Bean.Chukuguanli_yuancailiaoBean chukuguanli_yuancailiaoServiceSelectContation(Bean.Chukuguanli_yuancailiaoBean bean)
        {
            DAO.Chukuguanli_yuancailiaoDao rukuguanlidao = new DAO.Chukuguanli_yuancailiaoDao();
            return rukuguanlidao.chukuguanli_yuancailiaoDaoSelectConditionchukuuse(bean);
        }
        //原材料出库条件查询 !!库存管理用
        public Bean.Chukuguanli_yuancailiaoBean chukuguanli_yuancailiao_kucunguanliServiceSelectContation(Bean.Chukuguanli_yuancailiaoBean bean)
        {
            DAO.Chukuguanli_yuancailiaoDao rukuguanlidao = new DAO.Chukuguanli_yuancailiaoDao();
            return rukuguanlidao.chukuguanli_yuancailiao_kucunuseDaoSelectConditionchukuuse(bean);
        }
        //原材料出库添加
        public bool chukuguanli_yuancailiaoServiceAdd(Bean.Chukuguanli_yuancailiaoBean bean)
        {
            DAO.Chukuguanli_yuancailiaoDao rukuguanli_yuancailiaodao = new DAO.Chukuguanli_yuancailiaoDao();
            return rukuguanli_yuancailiaodao.chukuguanli_yuancailiaoDaoAddchukuuse(bean);
        }

        //原材料出库库存管理用
        public Bean.Chukuguanli_yuancailiaoBean chukuguanli_yuancailiaoServiceconditionyanshoudate(string nowdate)
        {
            DAO.Chukuguanli_yuancailiaoDao chukuguanli_yuancailiaodao = new DAO.Chukuguanli_yuancailiaoDao();
            return chukuguanli_yuancailiaodao.chukuguanli_yuancailiao_kucunguanli_selectcondition_yanshoudate(nowdate);
        }


        //产品入库添加
        public bool chukuguanli_yuancailiaokucundatechuliadd(Bean.Chukuguanli_yuancailiaoBean bean)
        {
            DAO.Chukuguanli_yuancailiaoDao ruku_chanpin_dao = new DAO.Chukuguanli_yuancailiaoDao();
            return ruku_chanpin_dao.kucunguanli_insertormodifyadd(bean);
        }

        //产品入库添减
        public bool chukuguanli_yuancailiaokucundatechulijian(Bean.Chukuguanli_yuancailiaoBean bean)
        {
            DAO.Chukuguanli_yuancailiaoDao ruku_chanpin_dao = new DAO.Chukuguanli_yuancailiaoDao();
            return ruku_chanpin_dao.kucunguanli_insertormodifyjian(bean);
        }
    }
}
